package org.anderground.internal.graphics.factories;

import org.anderground.core.graphics.Path;
import org.anderground.core.graphics.factories.PathDashPathEffectFactory;
import org.anderground.internal.graphics.abstaractions.AbstractPathDashPathEffect;
import org.anderground.internal.graphics.abstaractions.AbstractPathDashPathEffect.Style;
import org.anderground.internal.graphics.impl.AndroidPath;
import org.anderground.internal.graphics.impl.AndroidPathDashPathEffect;

import android.graphics.PathDashPathEffect;

public class PathDashPathEffectFactoryImpl extends PathDashPathEffectFactory {

	@Override
	public AbstractPathDashPathEffect create(Path shape, float advance,
			float phase, Style style) {
		return new AndroidPathDashPathEffect(new PathDashPathEffect(AndroidPath
				.cast(shape), advance, phase, AndroidPathDashPathEffect
				.cast(style)));
	}

}
